from django.core.cache import cache
from django import http
from django.contrib.auth.forms import UserCreationForm
from django.http import HttpResponseRedirect
from django.views.generic.simple import direct_to_template
from articles.Mendeley import Mendeley

def get_articles_json(request):
    mendeley = Mendeley();
    exhibit_data = mendeley.processGroupDocumentsToExhibitJson()
    return http.HttpResponse(exhibit_data, content_type='application/json')

def index(request):
    title_page = 'Articles'
    return direct_to_template(request, 'articles/index.html', {'title_page' : title_page} )
